making dataset an array