try catch with plotting