adding substeps in themplate