logical error in std stream guard
logical error in std stream guard