simplify code for instruction passes