changed from decimal to int