modified task2 damping intToDouble