added variable to template in api