removed redundant patterns