substituting else for another conditional