code refining