Function cloneAndChange