unfold template for applies