removed useless port checking