modified inject logic to deifine Atomic object