delete repeated templates from generation