added an else to an if