logic flaw