code cleaning and updating templates