Flashing is slipped under the old tin and over the new shingle. A heavy bead of silicone will fill any gaps.