refactor StackPass class