[mod] refactor using foldlESep