adding batch method, cleanup