update barplotting