to prevent inconsistency when choosing by key (getting a string as result) or by value (getting an int as result)