modified dataset generation to use the open flag to determine whether a business has actually closed