switched to joint -> coordinate indexing