fixed bug: integer devision -> float devision