added updating of messages