allows dataset to be an array of objcts