It's all the pockets of butter inside the dough that melt in the oven, leaving flaky layers. Keeping the dough cold helps that butter to stay solid. Another tip is to employ the French method of fraisage to make streaks of butter, rather than blobs. Just a couple of quick swipes is all it takes.