before restructuring stack