upgrade length if length is different