using stream.Transform