implement scanRight