changed header to use pointers to dataset