working in on template