add haschanged field