renamed slice to datastream