replaced ELSIF