controlling the brakes