fixed the variable naming issue
save message method