added copy random ptr