updating stack
update stack