code reworking