making index cannot be modified directly by the public api