adding the template for current position