working on custom template