Compact leaves of codimension one foliations