pid is NOT the index of the process table >:[