updating pie example