update hp and cv