added function calls for amount = 0