remove occurrences of List.size==0