having a transition like this requires a more intricate flashing detail, where the metal roof ends there should be a peice of not only ice and water shielf that laps over teh metal but goes up the main roof but also a peice of metal then another peice of ice and water that covers the top edge of the metal