update stack.c