bug fixed: float -> int