data formatting and bubble generation works