added inject method