update bo,t lengths