programed batch learning and rename functions