code refinement ended