Adapting the changing environment: microbial way of life