update locals