added the ability to select datapoints