remove unnecessary class Messages