stack: clean code of stack