fix pointers