converted sgv_m to template format