updating reference