adding pointer to messages