because now we have ``elif``, loc is not set before this condition anymore