change algo for swap ranking (always >0)