repair templates