simplify makeElement, makeElementNoEnd using monoidal left fold instead of mconcat and map