updates polishing code