map type should not not have messages as a key