update and sign