changing method for location grabbing