change indices to short for fast tmx