set_data for pointer data