- use array to keep track of available pids