loop when join