work on templates