added code to join ride