fix bug to emit nothing (reverse boolean evaluation) and remove too many variables