try catch around printing before after probs