fixed bubble, added insertion