add option to not clone the data