improve graph visualization