remove '!' and simplify pattern