make "amount" private