changed port input to int