What cooled allowing water to collect?