wrote scanner