added max sent. length