added messages v2 to cell states function