cleaned up graph