add index to ratings