set the index as the serial