add index to terminal num