fixed batch functions to use times correctly