cleaned up template file