adding common fxn for handling non-numeric columns