function join() now working