index syntax fix