Occupancy rates of excavated cavities and nest boxes in managed boreal forest in relation to forest structure

ABSTRACT Cavity nesting birds depend on the availability of tree cavities for breeding, but the structure of the surrounding environment may also impact cavity occupancy. Here we investigated the effects of forest structure on occupancy rates of excavated cavities and similar-size nest boxes by cavity nesters in managed southern boreal forests in Finland. We recorded the occupancy over five breeding seasons (2017–2021) and derived forest structure parameters from high-resolution thematic raster maps. We found a high occupancy rate in nest boxes (81%), but lower rates in natural cavities excavated in forest interior, forest edges and retention trees (42-46%). The analyzes focusing on Paridae only revealed that the occupancy rates in nest boxes were decreasing with increasing amounts of Norway spruce and deciduous tree foliage biomass, and tree height, but increasing with the proportion of Scots pine. In forest interior cavities, we found a negative effect of stand age but a positive effect of the proportion of spruce. We conclude that the benefits of nest boxes can be maximized by considering specific forest parameters when deploying them. In excavated cavities the occupancy rates are likely more dependent on the varying internal quality than on the forest structure.


Introduction
Boreal forests represent a biome providing a relative abundance of cavities (Andersson et al. 2018;Baroni et al. 2020), while still holding one of the lowest cavity densities in the world (Boyle et al. 2008;Remm and Lõhmus 2011;Andersson et al. 2018).Cavities are excavated by primary cavity nesters, mostly woodpeckers (Cockle et al. 2011;Ouellet-Lapointe et al. 2012;Andersson et al. 2018;Pakkala et al. 2018a).They choose tree candidates for excavation mainly based on the trunk diameter of a tree (Gutzat and Dormann 2018;Basile et al. 2020), the stage of its wood decay (Pasinelli 2007;Zahner et al. 2012;Pakkala et al. 2020), and they can prefer certain tree species (Volke et al. 2010;Hebda et al. 2017;Pakkala et al. 2020).In managed boreal forests, the availability of suitable trees has been heavily impacted by broadly applied intensive forest management (Kouki et al. 2001;Andersson et al. 2018;Määttänen et al. 2022).Apart from natural processes like the falling of cavity-bearing trees (Hardenbol et al. 2019), frequent logging and clearcutting are important determinants of cavity availability and distribution in managed forests (Andersson et al. 2018).These management practices negatively impact the density of cavity-breeders (Virkkala 2004) and also alter the surrounding environment around the existing cavity-bearing trees during the lifetime of the cavities.Under favorable conditions, they can provide breeding opportunities even for decades (Wesołowski 2011;Edworthy and Martin 2013;Pakkala et al. 2018b), depending on the tree decay stage (Edworthy et al. 2012) and tree species (Wesołowski 2011).The most noticeable change in this environment occurs when cavitybearing trees, originally located in the forest interior, are left as retention trees in a clear-cut area or at the edge of a forest stand.The cavities in such located trees can be occupied at different rates or by different species compared to forest interior cavities (Carlson 1994).
Secondary cavity nesters (SCN) rely on previously excavated cavities (Martin and Eadie 1999;Martin et al. 2004), and some of them also assess the suitability of the surrounding breeding environment (Goodenough et al. 2009).One of the parameters they consider could be the habitat structure (Mänd et al. 2005).If the forest structure around a cavity changes significantly due to forest management interventions and no other cavities are available nearby, SCN can be driven to breed in potentially non-optimal environments, including very young forest stands, clear-cut areas, or forest edges (Carlson 1994).Furthermore, SCN could prefer forest stands with a relatively higher share of deciduous trees for breeding.In these stands, SCN could find an abundance of Lepidoptera larvae, the preferred prey for some of them during the breeding season (Rytkönen and Orell 2001;Mägi et al. 2009;Rytkönen et al. 2019).Because birds often search for them in deciduous tree canopies (Rytkönen and Krams 2003), we assume small SCN could prefer stands with a higher share of these trees in otherwise conifer-dominated boreal forests.
An aggregated distribution of the excavated cavities (Remm et al. 2006) and their possible shortage in forests structurally suitable for breeding of SCN can be compensated by deploying nest boxes in forest stands.Unlike woodpeckerexcavated holes, these artificial cavities bring several advantages to cavity occupancy research.They are easily accessible for checking their content, they have known locations in the field, their quality can be adjusted in accordance with the research requirements, and, most importantly, all these parameters can be easily controlled for a specific experiment.There are, however, not many studies that have examined how the occupancy of nest boxes compares to that of natural cavities (e.g.McComb and Noble 1981;Brawn 1988;Lundberg and Alatalo 2010;Schwartz et al. 2020;Sudyka et al. 2022), and we are not aware of such studies in southern boreal forests.
Collecting detailed forest structure data through a field survey can be costly and highly time-consuming, especially for large study areas.For these reasons, high-resolution remotely sensed data on various forest parameters could represent environmental data sets suitable for predicting cavity occupancy.Indeed, satellite-derived data have been successfully used for similar purposes, such as deriving bird-habitat preferences (Fuller et al. 2005;Rönkä et al. 2008), predicting habitat-related spatial variation in bird abundance (Rhodes et al. 2015) or predicting bird occurrence in valuable forest habitats (Virkkala et al. 2022).In general, we assume that forest structure data depicting the main forest management interventions (e.g.areas of clear-cutting) and basic structural parameters (e.g.tree canopy coverage and tree species proportion) could represent relevant predictors for tree cavity occupancy (Amininasab et al. 2016;Potti et al. 2018;Ceia et al. 2023).
Here we investigated the effects of the forest structure of southern boreal forests in Finland on the occupancy rates in two cavity typestree excavated cavities and nest boxesoccupied by SCN.We also performed separate analyzes on combined great tit Parus major and Eurasian blue tit Cyanistes caeruleus cavity occupancy, as these species are widespread breeders in the studied region (Keller et al. 2020) and, at the same time, we have limited information on their breeding in natural cavities or large forest areas.We assumed that cavity occupancy is affected by the specific structure of the forest stands surrounding a cavity, as birds generally select specific vegetation structures in their habitats (MacArthur and MacArthur 1961;Cody 1981).We investigated the effects of forest structure parameters commonly used in forest research (Hui et al. 2019), including tree dimensions (e.g.height, diameter or volume), tree species proportions, canopy coverage, foliage biomass, and stand age.Additionally, we distinguished whether a cavity-bearing tree is located in the forest interior, edge, or as a retention tree in a clear-cut.This was done to account for different cavity locations in the forest stands.Our analyzes should elucidate whether these basic forest structural parameters could be considered relevant predictors for the occupancy rates of tree cavities.More specifically, we addressed the following questions: i) What are the occupancy rates in the different cavity types?We predicted that nest boxes would be occupied at higher rates than excavated cavities as observed in various bird species (Brawn 1988;Schwartz et al. 2020;Baroni et al. 2023).ii) Which of the considered forest parameters influence the occupancy rates of these cavity types?We predicted that an increase in all measured forest structure parameters and stand age would positively affect the occupancy rates of cavity types, as higher values of these parameters should be associated with older or more complex forests, which are potentially preferred for breeding.iii) Does the share of deciduous tree species in forest stands increase the occupancy rates?We predicted that an increasing share of deciduous tree species could have a positive effect on occupancy rates in otherwise conifer-dominated forest habitats due to the potentially increased food offer as outlined above.iv) Do the main gradients (as principal components of different traits) in forest structure predict the occupancy rates of cavity types?We tested the possibility that gradients of forest structure derived from the basic forest parameters may serve as suitable predictors of occupancy rates.

Study area
The study area was located in southern boreal forests in Finland (bounding box 60. 48°N, 22.00°E and 60.80°N, 22.45°E), approximately between the city of Turku and the municipalities of Mynämäki, Yläne and Aura, covering ca 335 km 2 of forests (Figure 1).The forests of Southwest Finland, where our study area was located, comprise primarily of Scots pine Pinus sylvestris and Norway spruce Picea abies, deciduous trees are represented mainly by silver and downy birch Betula pendula, B. pubescens and European aspen Populus tremula (Peltola et al. 2020).The overwhelming majority of the forests in the study area are intensively managed for wood production.Only a small proportion of the forest area (3%) enjoys protection status (SYKE 2021), and these forests are not logged.

Bird species and cavity types
Tree cavities in the study area are excavated by several primary cavity nesters.A great majority is excavated by great-spotted woodpecker Dendrocopos major (GSW), and a smaller proportion of similar-size cavities by grey-headed woodpecker Picus canus, which we also considered and pooled with GSW cavities.We originally performed a complete census of all GSW-sized excavated cavities in 50 fourhectare grids that were randomly placed in the study area (Baroni et al. 2020).In these grids, all potential trees were examined for the existence of cavities (from the ground) in a survey that could take one to four hours depending on the site (Baroni et al. 2020).Cavities that were found opportunistically outside the grids during this survey and when moving in this area, e.g. during monitoring of nest boxes (see below) were added to the database and examined in later years.These cavities are a bit different from grid searches, as finding them depends on the routes taken.Especially aspen trees with cavities can be found from a long distance when they are left in clear-cuts in groups or as single retention trees, and at the edges of forest stands.This is not however a problem in the context of this study, as we are not attempting to estimate and extrapolate the number of cavities or calculated their densities in different habitats, but only to examine their occupancy rates in relation to forest structure around them.We used a pole-mounted camera (Wildlife Windows Ltd) to inspect cavities for occupancy from May to June 2018-2021.The use of the camera allowed us to exclude obviously unsuitable cavities for breeding, such as those filled with debris, flooded, or unfinished cavities without a breeding chamber.Each cavity was checked at least once during this period, but some cavities were checked yearly.The timing was chosen so that in addition to resident birds, the cavities could already be occupied also by long-distance migrant species (pied flycatcher Ficedula hypoleuca and common redstart Phoenicurus phoenicurus).
In the accessible GSW cavities (mean ± SD height = 5.5 ± 2.0 m), excavated lower than 13 m, we recognized bird occupancy as the presence of an incubating female, a nest with eggs, and also when we found an incomplete nest, i.e. fresh nesting material was present.Nests of different species are typically easy to identify even in the absence of a parent bird, owing to the species-specific nesting material they use.Cavities containing nests built apparently in previous breeding seasons were considered unoccupied.For subsequent analyzes, we recognized the occupancy per cavity-bearing trees (tree-wise approach), not allowing for the number of occupied cavities in multi-cavity trees, to at least partly take into account the effect of bird territoriality.Cavity-bearing trees with at least one cavity occupied by GSW or pygmy owl Glaucidium passerinum in the focal year were excluded from the data set as unsuitable for the breeding of great tits and blue tits when focusing the analyzes on them.
In the same study area, we placed nest boxes mainly during 2012-2013 and checked their content each year between April and June; here the data from 2017-2020 is used for comparison with the natural cavity study conducted in these years.The placement of nest boxes was done so that there would be no more than one nest box in a square kilometer grid (in the Finnish grid coordinate system) and thus the distance between two nest boxes would be approximately one kilometer or more.Nest boxes were designed to resemble GSW cavities with their dimensions: inner diameter = 15-17 cm, entrance to bottom distance = 30-35 cm, and entrance diameter = 4.5 cm.Before their installation, we poured coarse wooden sawdust on the bottom of each nest box to better reflect a cavity previously occupied by woodpeckers or other species.We attached nest boxes to tree trunks at a height of ca 1.5 m allowing easy checking of their content.We evaluated the occupancy of nest boxes using the same criteria as in excavated cavities.
In total, we collected data on occupancy in 215 cavitybearing trees (in each year of 2018-2021 we checked 110, 88, 90, and 103 of them, respectively) and 236 nest boxes (in each year of 2017-2020 we checked 192, 210, 134, and 201 of them, respectively).For cavity-bearing trees, we distinguished the following groups based on the location of trees in a forest: retention trees (a tree or group of trees left in a clear-cutting area, n = 42), forest edge (cavity-bearing trees found < 25 m from the stand edge; forest roads were not considered as forming the edges if the forest stands were present on both sides of a road, n = 75), and forest interior (cavitybearing tree > 25 m from the stand edge, n = 103).Cavitybearing trees included aspen (n = 158), other deciduous trees (n = 15), Scots pine (n = 26), spruce (n = 6), and undetermined tree species (n = 10).The locations of excavated cavities were more clustered than in nest boxes (Figure 1), but still more than 2/3 of excavated cavities and nest boxes were located at least 50 m apart, and approximately 90% of excavated cavities were found at least 50 m apart from the nearest nest box.

Forest structure
To describe the forest structure around cavity-bearing trees and nest boxes, we used Multi-source National Forest Inventory (MS-NFI) thematic raster maps of 2017 and 2019 (Mäkisara et al. 2019) provided by Natural Resources Institute Finland (Luke).These high-resolution data (16 m × 16 m per pixel) are based on field plot measurement and satellite image data.For our occupancy analyzes, we calculated the means of respective forest parameters for each year in buffers of 25 and 50 m radii around the excavated cavities and nest boxes, to cover both the immediate environment around a cavity and an area approximately corresponding to the breeding territory size of the studied great and blue tits (Krebs 1971;Dhondt et al. 1982;Sasvari 1991).We considered the following forest parameters: mean amount of spruce, pine, and deciduous tree foliage biomass (t.ha −1 ), mean stand tree height (m), mean stand tree diameter (cm), mean canopy coverage (%), mean growing stock volume of spruce, pine, and deciduous trees (m 3 .ha−1 ), mean stand basal area (m 2 .ha−1 ), and mean canopy coverage of deciduous trees (%), for which we show mean values and ranges in the buffers of 25 m (Table 1) and 50 m (Table S1).For years not covered by the MS-NFI product (i.e. 2018, 2020, 2021), we created a vector layer with manually drawn polygons depicting new clear-cut areas and mineral extraction sites, representing key changes in forests, using QGIS 3.20 (QGIS.org2021).We overlapped the forest parameter raster layers with the polygons and set the values of raster layer pixels to zero in clear-cut areas and to NA in extraction sites.The positions of clear-cut and extraction areas were determined from Sentinel-2A high-resolution (10 m per pixel) satellite images (Drusch et al. 2012) taken in months June to August in the respective years.We also derived the main gradients of forest structure by means of principal component analysis (PCA, for details see below), as principal components (PCs).Lastly, we obtained the age of forest stands in the buffers from Suomen metsäkeskus (The Finnish Forest Center) spatial data sets, available at https://aineistot.metsaan.fi/avoinmetsatieto/Metsavarakuviot/Karttalehti/

Data analyzes
We calculated the probabilities of occupancy for the cavity types (excavated cavities in retention trees, at forest edges, in the forest interior, and nest boxes) in all species and separately for the combination of great and blue tits, and investigated the effect of forest structure on the occupancy of these tit species only, due to their distinctively different habitat requirements among other cavity nesters.Tit species were combined because it is difficult to separate failed nests with certainty, but a great majority of them were great tits (see below).
To obtain the main gradients in forest structure and test their effects on occupancy rates, we performed PCA on all forest structure parameters, using the built-in R function "prcomp".We further used four PC components, where PC1 can be described as a gradient from sparse forests and clearcutting areas to grown pine and spruce forests, PC2 as a gradient from deciduous tree dominated to pine-dominated forests, PC3 as a gradient from pine and deciduous tree forests to spruce forests, and PC4 as a gradient from young to old forests (Figure 2).The gradient interpretation remains the same across the years of the study (Fig. S2, Table S3).
Before building any models, we examined the correlations and variance inflation factors (VIF) of the predictors in the Rpackage "usdm" (Naimi et al. 2014) to minimize multicollinearity between the predictors (VIF < 5, Supplementary Material, Fig. S1, Table S2).Based on this procedure, which indicated high multicollinearity between certain forest structure predictors, we minimized the subset of selected forest structure parameters by excluding canopy coverage, canopy coverage of deciduous trees, basal area, tree diameter, and growing stock volume of tree species, as they were highly correlated (|r| > 0.7) with some of the predictors that were retained in the models, namely tree height and amount of tree foliage biomass.We kept these last mentioned but correlated forest structure variables in separate models because they may be relevant for describing forest birds' breeding territories, and excluding them would leave their effects on occupancy rates unknown.We built six models to test our hypotheses: The first model shows occupancy rates in both cavity types regardless of the effects of any forest structure variables (Question 1).This model was also fitted for all species combined, unlike the other models that were fitted only for the combination of blue and great tits.The second model shows solely the effect of stand age on occupancy rates in cavity types.The third model reveals the effect of tree height while controlling for stand age.The fourth model shows the effects of the amount of different tree species' foliage biomass on occupancy rates, controlled for stand age.These models (2, 3 and 4) were built to answer Question 2. The fifth model explores whether the effects of the amount of coniferous tree foliage biomass on occupancy rates of cavity types change with the amount of deciduous tree foliage biomass in the stands, controlled for stand age (Question 3).The last model investigates the effects of the main forest gradients, described by principal components (PCs), on occupancy rates (Question 4).These models were fitted as logistic mixed-effect models with a binomial error structure and a logit link function using the R-package "glmmTMB" (Brooks et al. 2017).We defined cavity occupancy (1 = occupied, 0 = unoccupied) as the response variable, cavity type × forest structure or cavity type × PCs interactions were the predictors, age of forest stands was a confounding variable (except for the first and the last model), and an exponential covariance structure was included as a spatial autocorrelation term.The year of cavity checking was not included as a random effect (RE) in any model because the RE models did not perform better than non-RE models (ΔAICc < 2; Table S2a,b).We did not consider stand age in models including PC components since it was already included as a predictor in the PCA analysis (see mentioned above).To investigate possible nonlinear effects of the predictors, we compared models including linear Table 1.Mean ± SE and range (minmax) of values of forest structure parameters in 25 m buffer around the cavity-bearing trees (retention trees n = 42, forest edge n = 75, forest interior n = 103) and nest boxes (n = 236).Pine_fol = mean pine foliage biomass (t.ha −1 ), spruce_fol = mean spruce foliage biomass (t.ha −1 ), dec_fol = mean deciduous trees foliage biomass (t.ha −1 ), height = mean stand tree height (m), diam = mean stand tree diameter (cm), canopy = mean canopy coverage (%), canopy_dec = mean canopy coverage of deciduous trees (%), pine_vol = mean growing stock volume of pine (m 3 .ha−1 ), spruce_vol = mean growing stock volume of spruce (m 3 .ha−1 ), dec_vol = mean growing stock volume of deciduous trees (m 3 .ha−1 ), basal = mean stand basal area (m 2 .ha5.9 ± 0.5 (0-11.9)14.0 ± 0.4 (0-22.7)17.4 ± 0.3 (9.6-25.4)18.5 ± 0.1 (0-26.1)Diam 7.0 ± 0.6 (0-14.3)17.5 ± 0.4 (0-28.7)22.0 ± 0.4 (12.9-30.1)22.7 ± 0.2 (0-30.9)Canopy 30.9 ± 1.6 (0-65.3)53.8 ± 1.1 (0-73.0)61.3 ± 0.9 (32.6-76.0)63.4 ± 0.4 (0-77.9)Canopy_dec 9.8 ± 0.7 (0-21.0)9.3 ± 0.4 (0-40.5)5.9 ± 0.4 (0.4-36.0) 4.8 ± 0.2 (0-22.5)Pine_vol 20.1 ± 3.8 (0-58.8)65.7 ± 2.5 (0-110.1)91.1 ± 2.2 (26.6-142.4)86.1 ± 1.0 (0-146.9)Spruce_vol 10.0 ± 8.9 (0-38.9)41.5 ± 6.0 (0-187.1)69.2 ± 5.2 (5.6-251.1)101.6 ± 2.5 (0-327.9)Dec_vol 13.0 ± 1.9 (0-36.9)24.6 ± 1.  terms to models including polynomial terms using AICc.Only the model including the polynomial term of mean stand tree height outperformed the simpler model (Table S2c, d).We present the output of this model separately (Table S5b, Fig. S3) from a set of six final models that include linear terms only (Table 2).The model residuals were examined using the R-package "DHARMa" (Hartig 2022), and we did not find any obvious violations of the distributional assumptions.We assessed model fits by expressing the total variance explained by the models (Nakagawa's R 2 for spatial models and Tjur's R 2 for non-spatial models) using "performance" package (Lüdecke et al. 2021).
Marginal means for factors and linear relationships of the forest parameters were obtained using functions from the R-package "emmeans" (Russell 2022), which allowed for a correction for multiple comparison tests by assuming multivariate t-distributions.All analyzes were conducted in R 4.1.2(R Core Team 2022).

Results
We recorded breeding of one primary cavity nester, the greatspotted woodpecker, and eight SCN (Table 3).
A model on occupancy by any species across years showed different occupancy rates among the cavity types (χ 2 = 110.5,df = 3, p < 0.0001).Specifically, the occupancy rates were 46% (95% CI: 32.8-59.2%) in retention trees, 43% (33.6-52.8%) in forest edges, 42% (33.7-51.3%) in the forest interior, and nearly twice as high at 81% (77.5-84.3%) in the nest boxes (Figure 3a).From here on, we only focused on the nests of great and blue tits, since from these species we had sufficient data for examining the effects of forest structure on occupancy (93 and 548 nests in excavated cavities and nest boxes, respectively).Including other SCN (20 and 44 nests in excavated cavities and nest boxes, respectively) with substantially different ecologies and even a non-bird species (Siberian flying squirrel) could only confound the results.
We found an immense difference in great and blue tit occupancy between the cavity types (χ 2 = 135.4,df = 3, p < 0.0001, Figure 3b).The cavities in retention trees, forest edges, and the forest interior were occupied at a low rate of 25% (95% CI: 14.0-40.6%),26% (17.7-37.2%),and 28% (19.5-37.7%),respectively, while nest boxes were used three times more frequently for breeding, at an occupancy rate of 80% (76.0-83.7%).The age of the forest stand did not have any obvious effect on occupancy rates in the cavity types (Table 4), although there was a tendency (p = 0.057) of lower occupancy rates in nest boxes placed in older forests when considering the 50 m buffer (Table 4b).
Most of the statistically significant effects of forest structure on occupancy rates became apparent for nest boxes, and only a few effects appeared in cavity-bearing trees.Increasing tree height was related to a decrease in occupancy of nest boxes in both buffers (Table 4).In numbers, the occupancy rates decreased from 91 to 72% and from 93 to 70% with increasing tree height for the 25 and 50 m buffers, respectively (Figure 4a).The effect of the amount of tree foliage biomass was connected with decreasing occupancy rates with increasing spruce foliage biomass for the 25 m buffer (from 87 to 65%, Figure 4b) and with increasing deciduous tree foliage biomass for the 50 m buffer (from 86 to 74%, Figure 4c), both for nest boxes.For foliage biomass, only in pine we found a tendency (p = 0.072) for a positive effect, increasing the occupancy rates for the 50 m buffer in nest boxes (Table 4).However, this latter mentioned non-significant effect gained support from an increasing occupancy of nest boxes with the increasing PC2 component (Figure 2), describing a gradient from deciduous tree dominated to pine-dominated forests, from 66 to 89% and from 67 to 90% for the 25 and 50 m buffers, respectively (Table 4, Figure 4d).An indication of a negative effect of the PC4 component on nest box occupancy for the 25 m buffer (p = 0.066), describing a gradient from young to old stands (Figure 2), is in line with the forementioned indication of a negative effect of stand age on nest box occupancy rates.
In cavity-bearing trees, we found an increase in forestinterior cavity occupancy with the PC3 component, describing a gradient from non-spruce to spruce stands (Figure 2), and a decrease in occupancy rates with the PC4 component, describing a gradient from young to old forest stands (Figure 2), both in the 25 m buffer (Table 4a, Figure 4e,f).In the same cavity type, the increasing amount of pine foliage biomass in the 25 m buffer was associated with a marginally non-significant (p = 0.053) increase in occupancy rates (Table 4a).
Significant interaction effects of the amount of deciduous tree foliage biomass were shown only in cavity-bearing trees at forest edges.Contrary to our expectations, these effects were negative, indicating that with an increasing amount of pine foliage biomass the occupancy rates were decreasing more the larger was the amount of deciduous tree foliage biomass in both buffers (statistically significant interaction pine foliage biomass × deciduous trees foliage biomass, Table 4b).
The total variance explained by the model for all species was 17.3% and models for great and blue tits explained between 27.5 and 35.1% of the total variability.The models that did not account for spatial autocorrelation explained ∼ 5% less variance (Table S4).

Discussion
We found that cavity nesters, as well as specifically the great and blue tits, occupied cavities excavated by the great Table 2.The final models relating the occupancy (Occ) to parameters of forest structure around cavity-bearing trees and nest boxes (cavity type).For all species altogether we fitted model 1 only, while for the combination of great and blue tits we fitted all listed models.All models also included exponential covariance structures as spatial autocorrelation terms.

Model nr.
Model spotted woodpecker at much lower rates than nest boxes of comparable dimensions in managed southern boreal forests.Forest structure parameters describing the surrounding environment around the cavity types had some effects on occupancy rates in nest boxes and in excavated cavities that were in the forest interior and forest edges.Specifically, the models showed negative effects of tree height and the amount of spruce and deciduous tree foliage biomass, and a positive effect of the proportion of pine trees in the forest stands on the occupancy rates in nest boxes.In excavated cavities, we found a positive effect of the proportion of spruce trees in the stands, and a negative effect of stand age in the forest interior.Interestingly, on forest edges, we unexpectedly found a negative moderating effect of deciduous tree foliage biomass.

Occupancy of excavated cavities
The absence of a difference in occupancy rates between cavities in retention trees and other types of excavated cavities (forest interior, forest edge) suggests that preserving single or groups of trees in clear-cutting areas could provide similar breeding opportunities for SCN as in unlogged forest stands.Indeed, small SCN were detected in similar densities in clear-cuts with retention trees as in adjacent forest stands when sufficient numbers of trees were preserved (Söderström 2009).However, a low number of retention trees can result in less frequent breeding in clear-cuts compared to forest edges (Carlson 1994;Söderström 2009).The pattern of low tree cavity occupancy we present here has been shown several times in boreal or higher altitude forests: in the primeval boreal forests in Mongolia (Bai et al. 2003), mid-mountain deciduous forests in Catalonia (Camprodon et al. 2008), boreal deciduous forests in central-south Sweden (Carlson et al. 1998), sub-boreal mixed forests of Canada (Edworthy et al. 2018), and in conifer-dominated southern boreal forests in Finland (Pakkala et al., 2018b, this study).The explanation for this pattern may lie in the varying internal quality of the cavities (Wiebe et al. 2020), assuming birds could preferentially select less degraded cavities (Aitken and Martin 2008).Ideally, we should exclude cavities considered by SCN as too poor in quality for breeding from the analyzes, not just cavities obviously unsuitable for breeding (see Methods).Then we could expect to obtain higher occupancy rates, which would, however, better reflect the real supply and demand in the tree cavity system.The low occupancy rates in tree cavities could also result from the fact that only cavities with ideal dimensions and of very good quality may be used for breeding, or SCN may have to compete with primary cavity nesters for superior cavities as they can reuse them (Pakkala et al. 2017;Koenig et al. 2021).
Apart from an analysis on all cavity nesters, we also analyzed the occupancy of cavities by great and blue tits together, although they can choose slightly different cavities for breeding.When breeding in excavated cavities, the great tit can prefer the larger ones with larger entrances compared to the blue tit (Carlson et al. 1998;Remm et al. 2006), which frequently breeds also in non-excavated tree holes (Wesołowski and Rowiński 2012).Therefore, if the internal quality of a cavity plays a role in their breeding cavity choice, it could be dominantly driven by the great tit's preference for larger GSW cavities.We pooled these two species in the analyzes because it is not always possible to distinguish between them when inspecting natural cavities, but it is important to note that the number of great tits in our data is clearly higher than that of blue tits (Table 3).
The excavated cavities had a much more clustered distribution compared to the intentionally spaced nest boxes (Figure 1).This aggregation could affect the occupancy rates on closely neighboring cavities via intraor interspecific competition, regardless of the forest structure, as observed in nest boxes installed close to each other and occupied by blue tits (Serrano-Davies et al. 2017).Although greater proximity between cavities is a natural phenomenon (Remm et al. 2006), we at least tried to cope with this effect on occupancy rate in the most complicated cases of multi-cavity trees, by employing a tree-wise approach.We assume this approach was meaningful since the great tit, accounting for the majority of our occupancy events, practically does not utilize multiple breeding opportunities in the same tree (Dolenec 2019).
Many of the suitable cavities can be located in suboptimal breeding environments, such as areas where food sources are scarce or a chance of predator visits is more likely (Sandström 1991).If such environments are avoided for breeding, even a high-quality cavity located in them may be occupied less frequently, as indirectly suggested by lower occupancy rates found in nest boxes placed in non-preferred habitats (Mänd et al. 2005).Conversely, we can describe the environment as very suitable for breeding, but the available cavities are of poor quality and remain unoccupied.However, the latter scenario is less likely since we inspected the cavities with a camera and excluded those that were very likely unsuitable for breeding.

Occupancy of nest boxes
The decline in the occupancy rate in nest boxes surrounded by forests with high amounts of spruce foliage biomass can be partly related to a generally lower preference for coniferous stands for breeding (Lemel 1989;Mägi et al. 2009;Mänd et al. 2009) or foraging (Suhonen et al. 1994;Rytkönen and Krams 2003) by great and blue tits in midand higher latitudes.However, since birds cannot avoid breeding in coniferous stands dominating in the study area, they might at least not prefer dense coniferous forests.Indeed, the positive relationship in occupancy rates with pine-dominated stands (Figure 4d) indicates that habitat avoidance probably concerns only much denser spruce but not pine forests (see also Table 1 for the amount of foliage biomass).We suggest that the understory layer can be poor in vegetation in a cultivated dense forest that has not yet undergone natural thinning or disturbances creating openings.The detection of a significant negative effect of spruce foliage biomass in nest boxes only in the smaller 25 m buffer suggests that SCN may be more sensitive to specific forest structure immediately around the nest than at the edge of their breeding territories.Alternatively, nest boxes may be less frequently occupied in grown spruce forests because in such stands the excavated cavities could be abundant and thus not all cavities (whether nest boxes or tree cavities) can be occupied.The negative effect of tree height on occupancy rates is not surprising when we have a look at the close correlation between this parameter and spruce forest variables, i.e. the amount of foliage biomass and growing stock volume (Figure 2).Spruce forests were simply also tall forests.
As in the excavated cavities, the occupancy rates in nest boxes could result from their specific attributes.Their relatively little decomposed walls or generally lower humidity inside them (Maziarz et al. 2017) could make them of superior quality compared to tree cavities.But despite the high occupancy rate, the role of nest boxes in promoting great and blue tit populations in our study area is not conclusive based only on the presented results.We would need to collect complete information on nesting success or nestling survival rates in both cavity types to fully assess the benefits of nest boxes.
They may represent high-quality cavities for building nests, which was reflected in their high occupancy rate.But they might also be occupied frequently because great tits can widely accept nest boxes located in less preferred environments (Mänd et al. 2009).

Moderation effect of deciduous foliage
We did not detect the expected positive effect of a higher share of deciduous trees around the cavity types, which could be assumed to provide a higher abundance of Lepidoptera larvae, the preferred food source of the studied great and blue tits (Rytkönen and Orell 2001).Instead, we found a negative effect of this parameter in nest boxes, as well as a negative effect of deciduous tree foliage in the interaction with pine foliage biomass in forest edge cavities (Table 4).These effects might come from a low preference of great and blue tits for breeding in or near young forest stands formed by birches, or close to retention trees preserved in clear-cut areas (Carlson 1994).Also, they could avoid breeding in deciduous trees at forest edges, primarily composed of aspen in our study area, due to a higher risk of nest predation in such habitat (Sandström 1991).Finally, deciduous trees may not provide sufficient food quality compared to coniferous forests as noticed in the northern temperate region (Mägi et al. 2009).

Other forest and cavity parameters
The indications of significantly lower occupancy rates in nest boxes and forest interior cavities in older forests could be related to the specific structure of the stands.In the study area, the oldest forests are predominantly pine stands growing on shallow rocky soils, and pine stands at the borders of peat bogs (Finnish Forest Center spatial data).Such forests can be structurally different from old-growth forests found elsewhere in southern and middle Finland (Siitonen et al. 2000), and thus may not support the breeding of SCN as strongly as has been shown many times in old-growth forests (Virkkala et al. 1994;Rosenvald et al. 2011;Zawadzka et al. 2016;Andersson et al. 2018).The height of a cavity above the ground could rank among the other parameters affecting occupancy rates.It has been shown that greater height is connected with an increased occupancy rate of nest boxes and cavities in blue tits (Serrano-Davies et al. 2017), but not in great tits (Dolenec 2019).Here the same height of 1.5 m above the ground in nest boxes did not allow to test the effect of this parameter on the occupancy rate.We can only state that the occupied excavated cavities were located higher (mean ± SD: 5.5 ± 2.0 m) than the nest boxes.We also cannot say with certainty if the high occupancy rate of low-mounted nest boxes could be related to a lower chance of nest predation because either higher (Broughton et al. 2011), lower (Maziarz et al. 2016) or no difference (Sandström 1991) in nest predation rates were found with increasing cavity height.
The suitability of tree cavities for breeding might change as the cavities age (Edworthy et al. 2018;Pakkala et al. 2018b).Unfortunately, since we do not know the age of the majority of the tree cavities we found, we could not test for this effect.Nevertheless, we believe that our annual assessment of each cavity using the pole-mounted inspection camera and the exclusion of those that were apparently unsuitable for breeding (e.g.filled with debris or flooded) helped minimize potential bias arising from variations of cavity attractiveness over time.

Conclusions
Our study shows that placing nest boxes in stands of managed boreal forests has a large potential to provide breeding opportunities for some secondary cavity nesters.Unlike excavated tree cavities, which can vary in their internal quality, cavity nesters could greatly benefit from additional nest boxes (Purcell et al. 1997), especially if their attributes are preserved in the long term or they are replaced when too degraded.The indication of a negative effect of forest age on both nest box and forest interior cavity occupancy points out that great and blue tits may not necessarily rely on old-growth forests as breeding habitats, or may have access to numerous tree cavities in such forests, resulting in lower occupancy rates of cavities.To sum up, excavated cavities can be occupied at low rates in managed boreal forests, with a notable effect of only some forest parameters on these rates.Providing suitable nest boxes could increase the occupancy rates of cavity nesters when the offer of suitable tree cavities is limited as in our study area (Baroni et al. 2020) or where SCN populations have not reached their capacity levels.When deploying nest boxes, we should consider the basic structure of the surrounding environment, such as tree species proportions, tree height or stand age, in order to maximize the breeding benefits of the nest boxes.

Figure 1 .
Figure 1.Positions of cavity-bearing trees ♦ (n = 215) and nest boxes • (n = 236) in the study area located in Southwest Finland.The numbers on the symbols denote the aggregated counts of respective cavity types.The background map depicts the main land cover classes which were derived from a modified Corine Land Cover 2018 raster (SYKE 2021).

Figure 2 .
Figure 2. Ordination plots depicting the relationships between the forest parameters along PC1, PC2, PC3 and PC4 gradients of forest structure in 2017.Abbreviations: Pine_fol = mean amount of pine foliage biomass, spruce_fol = mean amount of spruce foliage biomass, dec_fol = mean amount of deciduous tree foliage biomass, height = mean stand tree height, diam = mean stand tree diameter, canopy = mean canopy coverage, canopy_dec = mean canopy coverage of deciduous trees, pine_vol = mean growing stock volume of pine, spruce_vol = mean growing stock volume of spruce, dec_vol = mean growing stock volume of deciduous trees, basal = mean stand basal area, age = mean forest stand age.For ordination plots across all the years see Fig. S2.

Figure 3 .
Figure 3.The probability of occupancy of cavity-bearing trees recognized as retention trees (n = 42), forest edge trees (n = 75), and forest interior trees (n = 103) and of nest boxes (n = 236) being occupied by (a) any cavity nesters and (b) by great and blue tits in managed boreal forests of SW Finland in 2017-2021.Error bars depict 95% CIs.

Figure 4 .
Figure 4. Statistically significant relationships between the probability of occupancy of the nest boxes and cavity-bearing trees and forest structure parameters estimated within 25 and 50 m buffers: (a) tree height, (b) amount of spruce foliage biomass, (c) amount of deciduous tree foliage biomass, (d) forest structure determined by PC2 (a gradient from deciduous tree dominated to pine-dominated stands), (e) forest structure determined by PC3 (a gradient from non-spruce to spruce stands), and (f) forest structure determined by PC4 (a gradient from young to old stands).Histograms show the counts of nest boxes and cavity-bearing trees at specific values of respective forest structure parameters.

Table 3 .
Species breeding in the excavated cavities (cavity-bearing trees, n = 215) and nest boxes (n = 236) in the study area, the number of nests found, and mean species' occupancy rates in the cavity types.Parus = undetermined, either great or blue tit nest.

Table 4 .
Conditional effects of forest structure parameters on the occupancy of cavity-bearing trees (recognizing cavities in retention trees, forest edge, and forest interior) and nest boxes in buffers of (a) 25 m and (b) 50 m around the respective cavity types.Model numbers correspond with the numbering in Table2.For full model outputs see TableS5a.Statistically significant effects (p < 0.05) are in bold.