Influence of genetic variation in fungal endophyte on the third trophic