implement output ir feature