changing messaging protocol slightly

improves code readability.