change method of definition for injection keys