change overflow length and rearrange