refactor of add ride