having trouble with iterative refinement