changed rating calculation