HW6 a changes to index