fixed missing pi