added spawn and duplicate for record