adjust lengths