arbitrary nr of datapoints