added not equals to pattern to match