added graph builder