used inject method