modify the irbuilder for method generation