changed behavior for last element of stream