+batch method added and some other small changes