Adapting to water scarcity