added ranking algorithm, distance, and availability