changed P to Dec and Total to Dec