change BigDecimal to int