remove nasty pattern