refine output
output for dot