add locals