reading previous dataset correctly