updated ubar in teh analytical function