try catch now not messy