change inject method form type0 to type2