refactor create dataset and study WIP