add update functionality from sdum