fix warning about using list of list instead of list