code inspector optimization