tried to fix the message errors