loading datasets and reshaping