updated beeswarm functions