update template

fixed compile errors