added rank to get local name