return type fix for index