batch processing working. adding structural changes