passing pid as int