change string=>int, keep schema and mapping in sync