fixed clone method