bugfix: write datapoint size