How crops can better survive floods