clean unused codes