template corrections