changed copy() to branch()