added to_dict util function
update a column