You have both variables, and aliases that you dont include in this snippet..
What script are you ripping your stuff from exactly?