removed incorrect indexing in scan.

specifically removed index p from scan.