remove incorrect and unused folding