remove deepcopy for performance issue.