inject method after creating