super elegant code in batch!