adds index for testing.