The first layer on top of the plywood or OSB roof deck is underlayment ... lead to water getting underneath the panels. I had our metal roofing panels cut to fit the length of our roof.