rename insert to saveCurrentStack