removing debug states