implemented ad ratings from index
merge from master