set pid variable