make sure readAmount is an int