no more errors in location grabbing code