added the graph and color load function