. better naming of the amount function