update pi program