add a function to prevent a bubble