remove index key in distances table