fix return const double