updated so code compiles given tweak to MessageType.