working on scanner