made the serPort into a global variable called "port"