dividing the template