added save message method