adding memnot pattern