handle widths array of bar from groovy