Forgot to return an array for a function