chang the pseudocode `else` to `elif`