adjusts in scanning algorythm