changed message data to object