fixing pointers