stream constructor