if/else morphed into elseif