fix the conditional