clean up and added size var to BatchResult