remove obselete pattern