updated messages class