using pid as int