made progressbars work