changed 'group' to 'index'