functions  upgrading in progress