remove nonsensical else condition