Forgot to add that .inject() in the end of the function. fixed that!