fix error
fix error
improve accuracy

from int to float