stop scanning once found