update branch optimize