erase inactive header include <stdexcept>