remove useless ports