What is the main alteration in an endosymbiont when it adapts to a host?