save datapoint
Contributed by : Jérôme Jesse