modification of isCond() method