using ranks