switch Q_LIST to use lambda