added folding
changed credit