improve from-each to work with destructuring