removes duplicate datapoints to make graph a bit lighter
be a bit more defensive