implement simple scan