diff graph loading function added