use enumerator each_with_index in Checker#check for map