added variable registration for clone