Metamorphic rock is produced when _________.