added progress bar(doesnt work yet)