pids mod by index