introducing cost change and batch mode