bug fix: change "not" to !