inject method successfully re-written