updating private pointer