* work with templates