fiddled with progress bar code