update to scatter and bar