update pointer