A method of transferring a pattern onto a substrate, in the fabrication of ICs, is disclosed. The substrate is coated with a photoresist layer, wherein the photoresist layer is selectively exposed and developed, producing sidewalls that exhibit roughness. The roughness is smoothened out by coating the photoresist layer with a coating layer.