optimizing joint connections