added loading of data into spaces