changed from Decimal to int