location algorythm start