finished ratings functionality