Minor logic flaw when determing whether or not there was criteria given (wrong parenthesis placement)