Modified bug: fixed the response type long -> double