add rating functionality