changed streams back to operating on arrays