You can't move these variable definitions out of the function - they are defined by positional parameters to the function :)