change to ```as e``` exception