change PCM to index