corrected bug in boolean check