Plant adaptation and crop improvement