fixed graph and added custom graph