update to use API's decimal fields

associated PR for API: #54