removed deprecation warning for mock vs double