stream/sink comes first