correct index param