added check for progress value