instance deep copy in inherited class