tried changing TOTAL to float(TOTAL)