made a few minor changes to pointers