progress bar finally works