Improve quality of diagram