add function to update dotali