added invalid rating functionality