five-bugs-a-day: use splice to trim the bug list