implemented progress indicator