adding smooth progress bar; distance offset