gets rid of unnecessary checks for location