fixing rank experiment script