mv code from add to join