reduce scope of try