create joints