simplified catch block