added show progress method