update stack