fixed rank calculation