made changes to add rerating and added some more changes
added some more changes