rewriting bubble creation functions