remove unnecessary enumerate