move bubble state to state
merge