add lib of a
modify beta0