fixed a small bug
figured out a way to take location