all code for ir_project