update formate index