generalize columns values as functions