changed port to char instd of int