further work on update function to build the upgrade list.