update port var