reverse the check in streams.erl