update the pointers