remove stream as required constructor parameter