refactorings
introduce method object for UpdateStack