index for message