there we go. removed the by-reference call. end() uses reference. derp