bad state removal