debug. looking into why there is such weard outputs from test. rank is weird