modify function previewFold