modified scanner setup