added in rating stuff for istrial.