how come it becomes syntax error when i put it inside another script?