implemented main till modify rating