Removed unnecessary part of pattern
changed exclude attern logic