second attempt to fix total