join work and added print keywords for debugging