refinement of code completion