added messages to handle empty lists