deal with empty lists