added doListUpdate function.