check length in clientmessage