change messageId to messageid