fixed the previous dumb way of handling the progress