pop instead of splice