As the lava cooled , contraction occurred .
As the lava cooled rapidly , contraction occurred .