update scanning method