remove duplicated code: reset() -> cleanup(0)