How chemotaxis helps the bacteria in their survival?