pass pointer of copied object