rating functionality added initially