remove some empty lines, add getAmountInteger