added code to get messages recipients