using try except