added rating functionality