could combine these two <code>elif</code>s with an <code>or</code> for the same effect - a little DRYer