modified massJoin behaviour