added basic features for join