[PD] finding index from table value