inject method now takes res in string not object