fixed using foundation::pi
fixed initializer lists