scan the whole block