add public stream unit function