update and add rating