updating to document passing in a data array