added ratings functionality