speed up prepProblemBounds