updating brake code