added method to output progress