added some pointer stuff