scanner rewrite