batch sda with pretrain