update Sec4 and Sec5