changed scan for new devices algorithmus