new method to change datadatarefs