Incrementing the wrong variable err I mean redefined parallel graphs