used if rather then try/except