- initialize pid for case of error