part without residue fixed, no-refine option fixed