Remove unnecessary enumerate