udpate the the 'index' name to 'idx'