attempt to fix by using float for total