scan optimization