refactored dataset and gaussian works