new function setProgress