created a load_late_period function