new version of batch programming