what factors affect animal longevity