removed unnecessary variable in message class