adds scaling for bar