minor additions to the data func