changed port to int