fix 1st graph logic