add ostream for print