can now update record, and ingrid fixed a bug