use basePattern