forgot to return the data from the function, doh