created a shallow clone method