modified maple search