modify the ostream reload function