change schedule method to batch