fixed algo for turning added get location method