factors affecting lifespan