added refining option