added index, fixed format error