remove deepcopy's and warnings