finish implementing scanRight