refactor compare codes enumerable