pid must be an int