pull data out of function, and define before hand