added clone complete function