added messages to cell states function