improved bad grain removal