Polypeptide chain folding