change try to if