refining the code