fixed screwed up template debugging