refactored index
ratings -> hash