upate stack