improve ratings helper