fix list processing