added refine steps