fighting with templates