adding try except back in