trying to fix sums not adding up with parseInt