changed index to PHP