shortened pie code