working on template