Forgot to change name of function in a function