use M_PI constant instead of local definition