added min template var