added print with redefinition of iostream