fixed getBatch
added size()