getPointer change from @asturur, improves readability