modified scanner