correcting number of datatpoints