made rating functionality