make a function to save our mapping file, but don't reassing values
parse our values according to our type
remove debug
update save desired features to replace discrete values with indicies