testing update functionality