created saveMessage