basically done, and all output cleared