mock is deprecated, changed to double