fixed a bug where we inject the contents of the function rather than the result of calling the function