added functioin body to get last update function