working version of mark as read