change try to exceptions