tag stack test ver #2(clean code)