templates correction