join pool logic