added message length limit