separation of template