adjust error catch