made set_data arg "auto ref"