further worked on template