got rid of unused pointers