the samples are loaded into data structure
updated for randomisation