reference fix
update for index - work in progress