Removes unneeded enumerate