update the value for the stack S1