move firstPass to local variable