then in all future functions, pass the function in as a variable