refactor stack module