working simple linear interpolation
correct a bug in displaying progress