adding preupdate method call