added working update functionality