small refactor in joiner.py