add try n catch