syntax fixes on template