total amount at the end of the listing and other small changes for logger