scanning method upgraded