removed all logic to set up template