change the methods to update Rate and comment