fixed bugs
added graph