changed bubbles fn to work with api- done