added some 2d pointer stuff