added list patterm matching.