add idx as names if missing