before each and all into stack