bruce_force, preprocessing