refactor list setting processing into private method