resolved first-joiner problem