update functionality added