Trapped water on the subducting plate turns into water vapour - flux melting of the mantle wedge. Rising of the mafic magma (stoping and assimilation) partially melts the silicic continental lithosphere - increasing the silica content of the magma. This is magma contamination.