avoid factors being used for value and flag columns