added function to join all models