update pointers