Contact metamorphism occurs due to