now painting the corresponding bar