"not defined error" please help

It doesn't seem likely.

The code you posted is incomplete (but includes information you may prefer to keep private), but you should also post the whole error message.