get rid of bugs before classification