refactored #my_inject