set up template