added stream put method