edited main and schedule