You specified a return command when you were not executing a function.
Only use return to return from a function.