Heterogeneous habitat