Rewrote folds to make it more readable

I like the rewrite makes it a bit more clear