update variables and fields