removed unnecessary method getMessage