transforming stream class