before solving batch prob