update for loading bar