fixed batch to remove source for distribution