Contact metamorphic occurs when ?

1. Plate boundaries collide
2. Magma comes into contact with rocks
3. sediment come into contact with rocks
4. Minerals crystals rearrange into a wavy layer