minor modification to unit not exists cond