messages changed to return string value