remove log.is_zero routine