finished search algorythm
stuff