started z-update function. but does not work