 Important resources include basking, feeding, and nesting sites as well as refuges from predators.The habitat of a species affects the structure of territories, for example, rock lizards have territories atop rocky outcrops.Some species may aggregate in groups, enhancing vigilance and lessening the risk of predation for individuals, particularly for juveniles.