set length for the modified new content