bug fix - print names not indices for debug