correctly index