only update pointers if not done, to avoid memory errors