UpdateFunction implemented tmp