graph correction