move bytecodes out of just one method