refactored unread messages