need to pass in the variables to the template