better, however batch is broken