does not need to be called because $total is integer. if it called the method returns float, which is also wrong