small corrections to move to location function