updating reference to port