adds prep table and batch array