added getter and setter for message
fixed errors