add injects under if