changing segment numbers