A switch to millets, maize from rice can curb losses due to climate change