upgrade bar added to it's own function