plug in memory attempt implementation with criteria as an array