added progress bar method.