implemented pie updating