refining output