revert back. return was in closure. output starts empty and returns empty if nothing.