polishing of the code