more work on joins