selecting first port