add processList function