inputted location detection in theory