change progress from double to int