it took a long time to reach the center of the valley , but he had guessed right , a stream was flowing down the center of the valley , and giant trees grew on both sides , with their branches hanging out over the water .