fix dataset operations to work for vectors