changed index syntax