two streams are working in a naive way