can this be broken into an ``if`` and ``elif`` please?