shortened referencing question. Changing folding code.