6-7 try except added