added bid-comparison function