turn message length calc into a macro