make getList return only the elements of a list.