removes confusing end, that's not doing what it looks like its doing