fixed some pointer stuff, definitely more pointer problems